import Vue from 'vue'
import App from './App.vue'
import one from './com/one.vue'
import two from './com/two.vue'
import three from './com/three.vue'
import "animate.css";
import paging from './com/paging'
import index from './com/index'
import ingoodsdex from './com/goods'
// 引入ElementUI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 注册路由
import router from './router/router'
import VueRouter from "vue-router";
// 是指路由重复。
const originalPush = VueRouter.prototype.push;
// 修改 原型对象中的push方法
VueRouter.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
};

// 全局axios
import axios from 'axios'

Vue.component('index', index)
Vue.component('paging', paging)
Vue.component('ingoodsdex', ingoodsdex)
Vue.prototype.$axios = axios
Vue.config.productionTip = false

import store from './shitu/store.js'

// 兄弟组件传值
import bus from './com/bus.vue'
Vue.component('bus', bus)

//引入echarts
// import * as echarts from 'echarts';
import echarts from 'echarts'
Vue.prototype.$echarts = echarts


new Vue({
  // el: '#app',
  router,
  store,
  render: h => h(App),
}).$mount('#app')
